Medical data recording system

ABSTRACT

A device for recording information on CDRs or other recording media and printing file information for observing what is recorded thereon. The information may be medical images such as x-rays, cat scans, magnetic resonance images, or sonograms. The discs can have patient names and other information selected from information stored thereon, printed on the disc as well as logos for the hospital, service provider or trademarks. The discs can be automatically loaded into the recorder and printer. The fields of information or logos printed on the discs can be changed to suit the user. A database creates and updates a directory of patent files so the discs can be located and the images thereon viewed for each patient. The discs have software allowing the computer to view the images on the disc so that a personal computer not having imaging software can operate the disc. The image information can be downloaded from a remote imaging machine for storage.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] This invention relates to data storage and more particularly to determining end of incoming data stream in order to create jobs for recording and printing file information on a disc taken from the electronically stored information on the disc.

[0003] 2. Description of the Related Art

[0004] In the past medical imaging such as x-rays were recorded on film and digital images were stored on digital film using film laser printers, which is expensive, bulky and difficult to store. Also, the original digital data might have to be modified so it can be printed using a laser printer since most printers can not handle high resolution or high quality digital data. Digital image storage allows storage and retrieval of original digital data on discs and transmittal of images over communications systems such as the internet.

[0005] There are printers combined with CD recording devices for printing on the disc that has just been recorded.

[0006] Medical imaging data is frequently manually stored on CD's and filed for later use in doctor's offices, hospitals, clinics and other medical facilities. The medical images may be generated by x-rays, cat scans, magnetic resonance images, sonograms or other image generating technologies.

[0007] Medical imaging data can be transmitted from one location to another over the internet or other communication system for recording the data. The filing and record keeping of the images thus received is a problem. It is a labor-intensive and error-prone task to gather information about each disc, write out labels and attach the labels to the discs, or write directly on the disc for storing and filing. It is very useful to have the information contained on a disc printed on the disc for reference and filing and for automatically creating a directory of the information stored on all the discs recorded in an office.

SUMMARY OF THE INVENTION

[0008] The present invention automatically scans data received for storage on the disc and prints selected fields of information directly on the discs for ease of file management. II The invention also constantly updates a database having a directory of all patient records and the discs the patient data is stored on. Although the invention is described in terms of storing medical imaging data any data imbedded with information useful for filing and label printing can be used with the invention.

[0009] The Medical Data Recording System hardware consists of three main components: a computer server; a CD autoloader with printer; and a piracy prevention device. The software components are: DICOM® communication software; FilmX™ software for storing software for viewing the images on the CDs, software for selecting image information to be copied to the CD and fields for printing on the discs; software for creating and updating a database of patient information and autoloader control software for the CDR and printer; and security device driver software.

[0010] The computer server communicates with other medical devices on the network using the DICOM® protocol. It receives medical images (patient studies) from other devices, processes the images and burns each patient's images on one or more CDRs along with medical image viewing software and other files as defined by the DICOM® protocol as well as files containing printed label definition and graphics files, files containing patient and study demographics, and necessary system files to make the CD autorun and autoload. Once a CDR has been burnt, information regarding the contents of the CDR and other graphics (company logo, legal notices, etc) is then printed directly on the CDR using the printer attached to the autoloader. Optionally, the system will create back up copies of the medical images it has received by burning them on CDR at configured days of the week and time. Each back up CDR will contain as many patients' images as possible to maximize disc space usage. Each backup disc is assigned a serial number which is printed on it. The patient and study demographics of the backed up data along with the corresponding backup disc serial number is stored in a database where they can queried.

OBJECTS OF THE INVENTION

[0011] It is an object of the invention to print information from selected fields of data saved on a disc onto the disc for visual recognition such that the discs can be properly stored in files.

[0012] It is an object of the invention to reduce clerical time and reduce errors by having discs printed with information fields from files stored on the discs.

[0013] It is an object of the invention to automatically load discs for information storage.

[0014] It is an object of the invention to automatically stop recording when the information stream has stopped and load a new disc for the next patient.

[0015] It is an object of the invention to print trademarks, service marks and logos on the discs.

[0016] It is an object of the invention to print selectable fields of information on the discs.

[0017] It is an object of the invention to back up files at specified time intervals.

[0018] It is an object of the invention to get as many images as possible onto one CDR.

[0019] It is an object of the invention to conveniently store medical image data on CD's rather than on film.

[0020] It is an object of the invention to be able to use a computer display to view medical images stored on CD's.

[0021] It is an object of the invention to preserve medical images for long periods of time.

[0022] It is an object of the invention to create patient files with directories and subdirectories from image data streams.

[0023] It is an object of the invention to divide data streams into separate files.

[0024] It is an object of the invention to automatically create and update file databases to locate patient information on the discs.

[0025] Other objects, advantages and novel features of the present invention will become apparent from the following detailed description of the invention when considered in conjunction with the accompanying drawing.

BRIEF DESCRIPTION OF THE DRAWINGS

[0026]FIG. 1 shows a schematic of the system using the data recording system.

[0027]FIG. 2 shows a block diagram of the software steps used in the computer for receiving files from the network and storing them on the computer.

[0028]FIG. 3 shows the routine for determining the data for jobs from incoming files.

[0029]FIG. 4 shows the routine for processing jobs in queue.

[0030]FIG. 5 shows the routine for checking for end of jobs.

[0031]FIG. 6 shows the routine for the backup process.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032]FIG. 1 shows a schematic view of the invention. A medical imaging device 10 such as an x-ray, cat scan, magnetic resonance imaging, sonogram or other device which generates information for storage on a disc generates images of a patient and either transmits it or stores it for later transmittal through a communication network 20 such as the internet to a computer 30. The computer 30 can be used to select information to be stored by the compact disc writer 40 on compact discs, CDs, 42 and can select what information is to be printed by printer 44 on discs 42. Although CDs 42 are shown, any recording medium may be used for storage of information. The blank compact discs 42 are stacked in an input CD stack 43 waiting to be recorded. The CD autoloader 46 selects CDs 42 from the top of the input CD stack 43 to be recorded on and places the CDs 42 into the recorder 40. When the CD 42 has information stored on it, it is moved by the CD autoloader 46 to the printer 44 where selected information and logos or other graphics are printed on the CD 42 so that the users have a written record on the disc of the information stored thereon and logos identifying the producer of the disc or other information. The CDs 42 are then removed from the printer 44 by CD autoloader 46 and placed in the CD output tray 45. The CDs 42 can then be placed in patient files.

[0033] The software for running the invention performs several tasks. There is security software communicating to an attached piracy prevention security device that keeps track of how many CDs are being recorded and what product option are active. There is software to run the autoloading functions of the CD autoloader 46 for recording and moving discs 42. The software also can be programmed to select the fields of information to be printed on the discs and for printing logos or other graphics or information on the discs. The software also copies instructions for operating the imaging onto the disc so that a computer without imaging software loaded in it can view the images on the discs.

[0034] Although many different software programs can be used to accomplish the goals set out above the following shows one method of securing image information for later viewing and recording it on discs with labels printed thereon. The software described herein is called FilmX™ software by the applicant.

[0035] FilmX™ software is used to receive data in the computer 30 from the communication network 20. The software incorporates DICOM® network connectivity software 51 such as WinSCP32.exe which is currently a standard digital imaging protocol used in the industry to receive the digital imaging data from the imaging device 10. The imaging data is received in the computer 30 by use of network connectivity software 51 using “winSCP32.exe” software available from ETIAM Corporation; Rennes, France. This program is a Storage Service Class Provider using the DICOM® protocol. The computer 30 receives DICOM images that are sent to it and places them in the Incoming (“D:\Incoming”) directory 52. The files are named:<Storage SOP Class>.<SOP Instance UID>.dcm where <Storage SOP Class>is the SOP class of the image and <SOP Instance UID>is the image UID (Unique Identifier).

[0036] There are multiple timers defined with in FilmX.exe. Timer_(—)1 60 is responsible for checking for incoming new files 61 in Incoming Directory 52. If new files are received they are stored as a separate file in a temporary directory Temp Directory 63. Timer_(—)1 60 is programmed to check if an end-of-patient-data timeout (MaxTime) 65 has occurred. The value for Timer_(—)1 60 is defined in the FilmX.ini file and is hence user configurable. Default time for Timer_(—)1 60 is 1 (one) second. Max Time 65 is also user configurable via FilmX.ini and is set to 30 seconds for default. The system will not allow that time to be set less than 10 seconds. Once the Timer_(—)1 60 goes off, two routines are called:

[0037] DcmBTreeParselnputDirectory

[0038] dcmBTreeMakePatientDataAvailable

[0039] The first routine parses any DICOM Part 10 file found in Incoming Directory 52. If any new files 61 are available, they are transferred to the Temp Directory (d:\Temp) 63. For each different patient, a subdirectory is created under the Temp Directory 63, and for each study of this patient, a subdirectory is created under the patient directory.

[0040] Patient differentiation is based on Patient Identification which consists of the concatenation of information found in DICOM datasets: PatientsID ‘_’ PatientsName, without any ‘^ ’, any white character or any character that may lead to an invalid Windows directory name, all characters are uppercase and enclosing blanks are removed. Patient Directory name underneath Temp Directory 63 is the Patient Identification described above.

[0041] Study identification is based on the StudylnstanceUID. Study Directory name beneath the Patient Directory is the study identification referenced above.

[0042] Filenames are the original filenames found in Incoming Directory 52. This allows the system to override an image if it is sent twice.

[0043] An additional text file is created in each Patient Directory. This file has a fixed name (timestamp.bsy) and contains the date and time of the last image insertion in the Patient hierarchy. The following information is also written in this file:

[0044] PatientsName

[0045] PatientsSex

[0046] PatientsBirthDate

[0047] An additional text file is created in each Study Directory. This file has a fixed name (study.dsc) and contains the information extracted from the last image of the study inserted in the Study Directory. This information is as follows:

[0048] StudyDate

[0049] StudyTime

[0050] StudyID

[0051] StudyDescription

[0052] RefferringPhysiciansName

[0053] AccessionNumber.

[0054] Once DcmBTreeParselnputDirectory has returned, any new patients are added to the Incoming Patient Queue and displayed on the screen as such. The combination of patient “[id]_[name]” is now the internal job name used for tracking the job.

[0055] Then dcmBTreeMakePatientDataAvailable is called to check in Temp Directory 63 if any patient subdirectories have not been modified (some images added) since MaxTime 65 seconds ago. The number of unmodified directories since MaxTime 65 seconds is returned. If no new files 61 have arrived for a patient, the timestamp file (timestamp.bsy) for the patient will be renamed to a fixed filename (timestamp.rdy).

[0056] Once the function returns a positive number, we browse for Patient Directories in the Temp Directory 63 containing “timestamp.rdy” file. The entire patient hierarchy is then moved to the Backup Directory 71 (D:\Backup). The Job is then removed from the Incoming Patient Queue and added to the Pending Patient Queue and displayed as such. If inactive, Timer_(—)2 70 is activated to start processing the pending job(s).

[0057] Timer_(—)2 70 is responsible for moving jobs pending in Queue to be processed. Once it goes off, the system is checked for any patient in queue 72, if none are present, Timer_(—)2 70 is disabled in step 74. If there are pending jobs in Pending Patient Queue, the system is checked for patient in process 73 (being recorded or printed). If there is one, Timer_(—)2 70 is disabled and it returns. If there are no patients in process 73, the next job in Pending Patient Queue, is processed. The patient directory hierarchy in Backup Directory 71 is moved to the Build Image Directory 75 (D:\Build Image) to get ready to burn on CDR(s). The Build Image Directory 75 also contains a Viewer Directory (“\Viewer) where the viewing software resides. There is also a FilmX Directory (“FilmX”) in the Build Image Directory 75 which contains the Patient information file (“Patient.txt”) and the Xlabel Directory (“\Xlabel”) where the CD printing label definitions and graphics files reside. Since DICOM Exchange standards only allow for eight character file names, the Patient, and Study directories as well as image file names are converted to eight character format in processing step 76. The Patient Directory name is changed to “PT000000” for the first patient. In case of back up CD, Patient Directories are then sequentially named “PT000001” and so on. The Study Directory(ies) are named starting with “ST000000” and increase sequentially if there is more then one study for the patient. The image files are then named starting with “IM000000” and so on. On the Build Image Directory 75 there is also an “autorun” file which is recognized by the Windows operating system and executed when a disc is inserted in a computer. The “autorun” file contains instructions to start the viewer in an “autoload” fashion causing it to immediately load and display the first Patient's first Study. Finally, according to DICOM Exchange standard, a “DICOMDIR” file in generated in step 76 in the Build Image Directory 75.

[0058] Once the Build Image Directory 75 is complete, it represents what should be put on the final CDR with Build Image Directory 75 as the root of the CD. The computer program “Premaster.exe” is then called to create a CD image of the contents of the Build Image Directory 75. This program is part of the BuzzSaw® software package produced by ISO Media of Seattle, Wash. The result is a “[job].CDR” file which is the image of the final CDR. It is located in the Spool Directory 77 (E:\Spool). A “[job]job” file containing the job control information for the autoloader control software (Buzzsaw®) is created in the Spool Directory 77. The Job file specifies the name of the CDR file, the input file for the print label fields, the number of CDRs to be made, the test flag, and other fields as required by the Buzzsaw® software. Once the CD image files is generated in the Spool Directory 77, the Build Image Directory 75 is then cleared of the patient directory and other created files. Once created, the job file is recognized by the Buzzsaw software and processed.

[0059] Buzzsaw® instructs the autoloader 46 to pick up a new CDR 42, put it in the CDR drive 40. Once there, Buzzsaw® will proceed to record the contents of [job].CDR” file on the CDR 42 in the drive 40. In multi-copy, multi-drive situations, Buzzsaw® will place new CDRs 42 in other drives 40 as well and record them simultaneously. Once the recording is finished, Buzzsaw instructs the autoloader 46 to place the recorded CDR 42 in the Disc Printer 44. It will then execute the printing software to print the label containing the input fields on the CDR.

[0060] The label printing software and printer driver are supplied by Primera Technologies; Plymouth, Minn., a disc printer manufacturer. The label definitions allow for input fields to be merged into the label via a merge file in Build Image Directory 75. The patient.txt file in the Build Image directory 75 is that merge file.

[0061] Once printed, the CDR 42 is then placed in the output bin 45 by the autoloader 46. If there are multiple copies, the other CDRs 42 are then printed by the Disc Printer 44 and put on the output bin 45 as well by the autoloader 46. Buzzsaw then updates the status line at the bottom of the “[job].JOB” file contained in the Spool Directory 77 to indicate the job is completed.

[0062] Timer_(—)3 80 is responsible for checking the end of the job. Once Timer_(—)3 80 goes off, the system checks for job done 81. If so, the job is moved from the Patients in Process to Patients completed and display is updated in step 82 where Timer_(—)3 80 is cleared, and Timer_(—)2 70 is enabled. If Backup Enabled 83 is false, the patient directory is deleted from Backup Directory 71. Otherwise, it will be kept there to be used during the backup.

[0063] Timer_(—)4 90 starts the backup process. It is programmed to go off at the configured time on the configured day(s) of the week. The program then checks if there are any files to backup 91. This is also a check for the end of back up process. If finished (or nothing left to back up), a CDR 42 containing only the latest database files is generated 99. This is the backup disc for the database files. If there are files to backup 91, in Select Patients step 92 enough patients are selected to fill a 650 MB CD (if there are enough) minus approximately 10 MB which is used for storing system, label, and viewer files. A Backup CD unique serial number is also generated in Select Patients step 92. The patient directories are then moved from Backup Directory 71 to Build Image Directory 75. The same processing as for a patient CD, as described in steps 75-77 above then occur steps 93-95. Once a backup job is created, the software then goes through a timed delay 96 waiting for the job to finish by checking for job complete 97. Once done, the database is updated with the patient and study information of all the patients on that CD and the CD unique serial number in Update Database step 98. The process starts anew by checking to see if there are any more files to back up 91.

[0064] A simple query screen allows for querying the backup database using patient name, patient id, or study date thus allowing the user to find which CD a patient information is stored on.

[0065] The piracy protection device is attached to the parallel port. It is initialized with the number of CDRs 42 purchased, and with patient and/or backup options. FilmX will create patient CDs if that option is enabled; back up CDs if that option is enabled; and ii both if both options are present. Once a job has been successfully completed, the number of CDs created by it are deducted from the counter in the piracy protection device. If at Zero, the system halts operation until a new code for additional CDs has been entered. Patient and/or backup options can be enabled by operator entering a code provided by Soma Corporation.

[0066] Even though the invention has been described herein using CDRs, other printable recording medium, including but not limited to CDR, CDRW, DVD-R, DVD-RW, DVDRAM; can be used.

[0067] Obviously, many modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that, within the scope of the appended claims, the invention may be practiced otherwise than as specifically described. 

What is claimed is:
 1. A data recording system comprising: a computer for receiving information, including fields of identification data to identify the information received, a means for dividing the received information into one or more identifiable files for a job, a information recorder for storing the identifiable files of the job on a data storage medium, and means for recording the information on the data storage medium, a means for selecting fields of identification data from the information received, for printing on the data storage medium, a printer for printing selected fields of identification data on the data storage medium and for printing other matter such as logos on the data storage medium, a means for instructing the printer to print the selected identification data and other matter on the data storage medium.
 2. A data recording system as in claim 1 wherein, the data stored on data recording medium are images and, a means for recording instructions on the data storage medium for a computer to automatically load the images stored thereon for viewing.
 3. A data recording system as in claim 1 wherein, a timer detects a pause in a data stream to select the end of the data transmitted to the computer for each job.
 4. A data recording system as in claim 1 wherein, a database is created and updated to locate the discs from information stored on the discs.
 5. A data recording system as in claim 1 wherein, a means for selecting the fields selected for printing on the data storage medium is programmed into the data recording system.
 6. A data recording system as in claim 1 wherein, a means for image creation for printing on the data storage medium is programmed into the data recording system for printing logos, trademarks and other images on the data storage medium.
 7. A data recording system as in claim 1 wherein, a means for automatically loading and moving discs to be recorded and printed is employed.
 8. A data recording system as in claim 1 wherein, the job comprises: a job name, a CD image file name, a number of copies of recording media to be created, a label file name, a label merge data file name.
 9. A data recording system as in claim 1 wherein, the job comprises: a job name, a CD file list, a number of copies of recording media to be created, a label file name, a label merge data file name.
 10. A data recording method comprising, receiving data for recording, organizing the data received into jobs, storing the data received on a recording medium, printing selected data received and other information on the medium such that the medium can be identified.
 11. A data recording system as in claim 10 wherein, the job comprises: a job name, a CD image file name, a number of copies of recording media to be created, a label file name, a label merge data file name.
 12. A data recording system as in claim 10 wherein, the job comprises: a job name, a CD file list, a number of copies of recording media to be created, a label file name, a label merge data file name.
 13. A data recording method as in claim 10 further including the step of, creating a data base of patient records to locate the discs the patient images are stored on.
 14. A data recording method as in claim 10 further including the step of, recording software on the medium for viewing the data stored thereon on a computer. 